<%--
  Created by IntelliJ IDEA.
  User: Mklaus
  Date: 15/8/7
  Time: 上午10:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>列出所有笔记</title>
</head>
<body>
  <c:forEach items="${notes}" var="note">
    ${note.title}
    ${note.content}
    <form action="/notes" method="post" >
      <input type="hidden" name="_method" value="delete" />
      <input type="hidden" value="${note.id}" name="noteId" />
      <input type="submit" value="删除">
    </form>
    <hr>
  </c:forEach>
</body>
</html>
